#!/usr/bin/env zsh

export ZSH=~/.config/zsh
if [[ -f $ZSH/env.zsh ]]; then
    source $ZSH/env.zsh
fi

# History won't save duplicates.
setopt HIST_IGNORE_ALL_DUPS

# History won't show duplicates on search.
setopt HIST_FIND_NO_DUPS

if [[ -e $ZSH/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh ]]; then
    source $ZSH/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
    fpath=($ZSH/plugins/zsh-completions/src $fpath)
fi

if [[ -e $ZSH/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh ]]; then
    # zsh-autosuggestions:config
    source $ZSH/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
    ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#ff00ff,bg=cyan,bold,underline"
    ZSH_AUTOSUGGEST_STRATEGY=(history completion)
    ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20
fi

# prompt
# ZSH_NEWLINE=$'\n'
# export PROMPT=" %F{46}%F %(?.%F{green}√.%F{red}?%?)%f  %B%F{69}%~ ${ZSH_NEWLINE} %F{119}==>%f%b "
# end config

